package com.ruixue.gatewayserver;

import com.fasterxml.jackson.core.filter.TokenFilter;
import com.ruixue.gatewayserver.filter.SsoLoginFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
//声明为注册服务
@EnableEurekaClient
public class GatewayServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayServerApplication.class, args);
    }

    @Bean
    public SsoLoginFilter ssoLoginFilter(){
        return new SsoLoginFilter();
    }

}
